﻿using System;
using System.Web.Mvc;
using FluentValidation.Attributes;
using Nop.Admin.Validators.ShareBuy;
using Nop.Web.Framework;
using Nop.Web.Framework.Mvc;
using Nop.Admin.Models.Catalog;
using System.Collections.Generic;
//using Nop.Admin.Models.Media;
using System.ComponentModel.DataAnnotations;
using Nop.Admin.Models.ShareBuy;
namespace Nop.Admin.Models.ShareBuy
{
    [Validator(typeof(ShareBuyValidator))]
    public class ShareBuyModel : BaseNopEntityModel
    {
        public ShareBuyModel ()
        {
            ShareBuyPictureModels = new List<Nop.Admin.Models.ShareBuy.ShareBuyItemModel.ShareBuyPictureModel>();
            ShareBuyCommentModels = new List<ShareBuyCommentModel>();
            AddShareBuyCommentModel = new AddShareBuyCommentModel();
            DefaultPictureModel = new Nop.Admin.Models.ShareBuy.ShareBuyItemModel.ShareBuyPictureModel();
        }

        [NopResourceDisplayName("Customer")]
        public int CustomerId { get; set; }

        [NopResourceDisplayName("Product")]
        public int ProductId { get; set; }

        [NopResourceDisplayName("Product Name")]
        public string ProductName { get; set; }

        [NopResourceDisplayName("Title")]
        [AllowHtml]
        public string Title { get; set; }

        [NopResourceDisplayName("Description")]
        [AllowHtml]
        public string Description { get; set; }

        [NopResourceDisplayName("Deleted")]
        [AllowHtml]
        public bool Deleted { get; set; }

        [NopResourceDisplayName("CreatedOnUtc")]
        public DateTime CreatedOnUtc { get; set; }

        [NopResourceDisplayName("UpdatedOnUtc")]
        public DateTime UpdatedOnUtc { get; set; }

        public int Likes { get; set; }

        //pictures
        public Nop.Admin.Models.ShareBuy.ShareBuyItemModel.ShareBuyPictureModel DefaultPictureModel { get; set; }
        public IList<Nop.Admin.Models.ShareBuy.ShareBuyItemModel.ShareBuyPictureModel> ShareBuyPictureModels { get; set; }
        //comments
        public IList<ShareBuyCommentModel> ShareBuyCommentModels { get; set; }

        public AddShareBuyCommentModel AddShareBuyCommentModel { get; set; }

        
    }
}